Get Metadata of an NFT
Returns the Metaplex metadata of an NFT from it's mint address
Networks Supported:
- solana-mainnet
- solana-devnet
- solana-testnet
Endpoint
GET
/api/v0/nfts/<NETWORK>/<MINT_ADDRESS>/metadata/<YOUR_API_KEY>
Test API Key
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IkZJMHljR2kwYWhYRFplQmtleEFFZm1jVzZ1NTMiLCJpYXQiOjE2NzM1OTQ1NjF9.CI2QEG7Ek6juzthOuV4NAstYKPHerzRXRUPpA1B9sb4
Code Sample
index.js
const axios = require("axios");
const apiUrl =
"https://app.conciselabs.io/api/v0/nfts/solana-mainnet/6Sz9mKqFsY4KfxzVBaboDk1tzyoK3BPrxSKQLMEoASon/metadata/<YOUR_API_KEY>";
const getMetadata = async () => {
const { data } = await axios.get(apiUrl);
console.log("metadata: ", data);
};
getMetadata();
Response
{
"metadata": {
"name": "SMB #625",
"symbol": "SMB",
"description": "SMB is a collection of 5000 randomly generated 24x24 pixels NFTs on the Solana Blockchain. Each SolanaMonkey is unique and comes with different type and attributes varying in rarity.",
"seller_fee_basis_points": 600,
"image": "https://arweave.net/Bd2fx8HLxkkznlobkowAJh6o8ggaic8g34oWdS2NMBc",
"external_url": "https://solanamonkey.business/",
"collection": {
"name": "SMB Gen2",
"family": "SMB"
},
"attributes": [...],
"properties": {
"files": [...],
"category": "image",
"creators": [
{
"address": "9uBX3ASjxWvNBAD1xjbVaKA74mWGZys3RGSF7DdeDD3F",
"verified": true,
"share": 100
}
]
}
},
"updateAuthority": "9uBX3ASjxWvNBAD1xjbVaKA74mWGZys3RGSF7DdeDD3F",
"isMutable": true,
"royality": 6,
"address": "6Sz9mKqFsY4KfxzVBaboDk1tzyoK3BPrxSKQLMEoASon",
"metadataAddress": "Cu8YPu9pjpk6M9pJTBF2RmQpdmAAmddqFk3qK1opL6J1",
"mint": {
"mint": "6Sz9mKqFsY4KfxzVBaboDk1tzyoK3BPrxSKQLMEoASon",
"mintAuthority": "Cc31tkHhtHH2xQXMocK6yeaUSwqJdzKkTcaSYPYSW9qU",
"freezeAuthorityAddress": "Cc31tkHhtHH2xQXMocK6yeaUSwqJdzKkTcaSYPYSW9qU"
}
}